package com.itheima.service;

import com.itheima.dto.OrderSettingDTO;
import com.itheima.vo.OrderSettingVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

public interface OrderSettingService {
    /**
     * 下载预约设置模板
     * @param response
     */
    void download(HttpServletResponse response);

    /**
     * 上传预约设置文件
     * @param file
     */
    void upload(MultipartFile file) throws Exception;

    /**
     * 根据月份查询预约设置
     * @param month
     * @return
     */
    List<Map<String, Integer>> getOrderSettingByMonth(String month);

    /**
     * 设置每天可预约人数
     * @param orderSettingDTO
     */
    void editNumberByOrderDate(OrderSettingDTO orderSettingDTO);


}
